//1. set this to the desired path
cd "~/Desktop/LAP_PSRM_Replication/"

/*
This README file describes the contents of this replication zip file. 
This analysis was conducted in STATA 15.1

The do files "LAP_Replication_1..." - "LAP_Replication_9..." can be run in order to replicate the individual tables and figures in the analysis.

If you are only looking to replicate the main analysis tables, you can use "LAP_Replication_2_Tables_2+3.do"
*/

/*
Data descriptions:
-LAP_Replication_COOHWIUS.dta: This is the main file for analysis containing bill-level lobbying and roll-call vote data from 4 legislative venues.
-LAP_Replication_GarlickPlus_30states.dta: Replication data from Garlick (2017) and data from the main analysis on CO/OH/WI.
-LAP_Replication_Holyoke_50states.dta: Replication data on interest group registrations from Holyoke (2019)
-LAP_Replication_lobbyingexpenditures_US.dta: Data from OpenSecrets on lobbying in Congress and financial expenditures
-LAP_Replication_MatchedBills_COOHWI.dta: The matched bills identified by Burgess (2016) with the lobbying and roll-call data from the main analysis.
-LAP_Replication_RCVs_US.dta: Roll-call votes in Congress used to calculate the average party difference by chamber for the Appendix.
-LAP_Replication_ShorMcCarty_50states.dta: Replication data from Shor McCarty (2015) on ideological estimates of state legislators.
*/


/*
It is recommended installing the following stata packages

ssc install estout
ssc install plotplain
ssc install reghdfe

And to set the graphics to:
set scheme plotplainblind, permanent
*/

//2. Create a log.
log using "Replication Log.smcl"

//3. Run the following code to replicate all of the analysis tables and figures from the paper
do "LAP_Replication_1_Table_1.do"
do "LAP_Replication_2_Tables_2+3.do"
do "LAP_Replication_3_Figure_1.do"
do "LAP_Replication_4_Table_5_Figure_2.do"
do "LAP_Replication_5_Tables_4+8+9_Figure_3.do"
do "LAP_Replication_6_Table_7_Figure_4.do"
do "LAP_Replication_7_Figure_5.do"
log close


//4. You can open the newly created log to observe the replication. 

view "Replication Log.smcl"
